<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>mymsgro</title>
	<link rel="stylesheet" type="text/css" href="css/main.css" />
	<link rel="stylesheet" type="text/css" href="css/meniu.css" />
	<link rel="stylesheet" type="text/css" href="css/style.css" />

</h:head>
<h:body>

	<ui:include src="header.xhtml" />

	<h:panelGroup layout="block" id="content">

		<ui:include src="leftMenu.xhtml" />

		<h:panelGroup layout="block" id="contenRight">

			<h:panelGroup layout="block" id="header" style="margin-top: 20px;">
				<ul>
					<li id="selected"><a>Edit employee</a></li>
				</ul>
			</h:panelGroup>

			<h:panelGroup
				rendered="#{employeeBean.userType == 'ConfidentialEmployee'} "
				layout="block" id="contentTab">
				<h:form id="updateTrainee" enctype="multipart/form-data">
					<h:panelGrid columns="2">
						<h:outputText value="type"></h:outputText>
						<h:outputText value="employee"></h:outputText>

					</h:panelGrid>
				</h:form>
			</h:panelGroup>

			<h:panelGroup rendered="#{employeeBean.userType == 'Trainee'} "
				layout="block" id="contentTab">
				<h:form id="updateTrainee" enctype="multipart/form-data">
					<h:panelGrid columns="2">
						<h:outputText value="type"></h:outputText>
						<h:outputText value="trainee"></h:outputText>

					</h:panelGrid>
				</h:form>
			</h:panelGroup>
			<!-- 
			<h:panelGroup layout="block" id="contentTab">

				<h:form id="formAddUser" enctype="multipart/form-data">
					<h:panelGrid columns="4">

						<h:outputText value="Username:" style="float: right" />
						<h:outputText id="inputUsername" autocomplete="off"
							value="#{employeeBean.currentEmployee.username}" required="true"
							requiredMessage="Can't be blank" styleClass="inputEmployee">
						</h:outputText>
						<h:outputText></h:outputText>
						<h:message for="inputUsername" style="color:red" />

						<h:outputText value="First name:" style="float: right" />
						<h:outputText id="inputFirstname" autocomplete="off"
							value="#{employeeBean.currentEmployee.firstname}" required="true"
							requiredMessage="Can't be blank" styleClass="inputEmployee" />
						<h:outputText></h:outputText>
						<h:message for="inputFirstname" style="color:red" />

						<h:outputText value="Last name:" style="float: right" />
						<h:outputText id="inputLastname" autocomplete="off"
							value="#{employeeBean.currentEmployee.lastname}" required="true"
							requiredMessage="Can't be blank" styleClass="inputEmployee" />
						<h:outputText></h:outputText>
						<h:message for="inputLastname" style="color:red" />

						<h:outputText value="Work email:" style="float: right" />
						<h:outputText id="inputWorkEmail" styleClass="inputEmployee"
							value="#{employeeBean.currentEmployee.workEmail}" required="true">
						</h:outputText>
						<h:outputText></h:outputText>
						<h:message for="inputWorkEmail" style="color:red" />

						<h:outputText value="Date of birth:" style="float: right" />
						<h:outputText value="#{employeeBean.currentEmployee.dob}"></h:outputText>
						<h:outputText></h:outputText>

						<h:outputText></h:outputText>



						<h:outputText value="Personal phone:" style="float: right" />
						<h:inputText id="inputPersonalPhone"
							value="#{employeeBean.currentEmployee.personalPhone}"
							required="true"
							validatorMessage="Phone number is not valid. It needs to be between 10 and 14 digits."
							requiredMessage="Can't be blank" styleClass="inputEmployee">
							<f:validateRegex pattern="^\d{10,14}$" />
						</h:inputText>
						<h:outputText></h:outputText>
						<h:message for="inputPersonalPhone" style="color:red" />

						<h:outputText value="Personal email:" style="float: right" />
						<h:inputText id="inputPersonalEmail"
							value="#{employeeBean.currentEmployee.personalEmail}"
							required="true" validatorMessage="Email address is not valid"
							requiredMessage="Can't be blank" styleClass="inputEmployee">
							<f:validateRegex
								pattern="[\w\.-]*[a-zA-Z0-9_]@[\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]" />
						</h:inputText>
						<h:outputText></h:outputText>
						<h:message for="inputPersonalEmail" style="color:red" />



						<h:outputText value="Employment date:" style="float: right" />
						<h:outputText
							value="#{employeeBean.currentEmployee.employmentDate}"></h:outputText>
						<h:outputText></h:outputText>

						<h:outputText></h:outputText>



						<h:outputText value="Last medical check date:"
							style="float: right" />
						<h:outputText
							value="#{employeeBean.currentEmployee.medCheckUpDate}"></h:outputText>
						<h:outputText></h:outputText>

						<h:outputText></h:outputText>



						<h:outputText value="Employment type:" style="float: right" />
						<h:outputText
							value="#{employeeBean.currentEmployee.employmentType}"></h:outputText>
						<h:outputText></h:outputText>
						<h:outputText></h:outputText>

						<h:outputText value="Position:" style="float: right" />
						<h:outputText value="#{employeeBean.currentEmployee.position}"></h:outputText>
						<h:outputText></h:outputText>
						<h:outputText></h:outputText>

						<h:outputText value="CV:" style="float: right" />
						<h:inputFile id="uploadedFile" name="uploadFile" required="false" />
						<h:outputText></h:outputText>
						<h:outputText value="#{employeeBean.errorMessage}" />

						<h:outputText value="Prosis number" style="float: right" />
						<h:outputText id="inputProsisNr"
							value="#{employeeBean.currentEmployee.prosisNr}"
							styleClass="inputEmployee">
						</h:outputText>
						<h:outputText value="*" style="color:red"></h:outputText>
						<h:message for="inputProsisNr" style="color:red" />

						<h:outputText value="Work phone" style="float: right" />
						<h:inputText id="inputWorkPhone" styleClass="inputEmployee"
							value="#{employeeBean.currentEmployee.workPhone}"
							validatorMessage="Phone number is not valid. It needs to be between 10 and 14 digits.">
							<f:validateRegex pattern="^\d{10,14}$" />
						</h:inputText>
						<h:outputText value="*" style="color:red"></h:outputText>

						<h:message for="inputWorkPhone" style="color:red" />

						<h:outputText value="German contact person" style="float: right" />
						<h:inputText id="inputGermanContactPerson"
							styleClass="inputEmployee"
							value="#{employeeBean.currentEmployee.germanContactPerson}"
							required="true" requiredMessage="Can't be blank" />
						<h:outputText></h:outputText>
						<h:message for="inputGermanContactPerson" style="color:red" />

						<h:outputText value="Career level" style="float: right" />
						<h:outputText id="inputCareerLevel" styleClass="inputEmployee"
							value="#{employeeBean.currentEmployee.careerLevel}"
							required="true" requiredMessage="Can't be blank" />
						<h:outputText></h:outputText>
						<h:message for="inputCareerLevel" style="color:red" />


						<h:commandButton id="updateUser" value="Save"
							action="#{employeeBean.updateProfile}">
						</h:commandButton>

					</h:panelGrid>

				</h:form>

			</h:panelGroup>  -->
		</h:panelGroup>
	</h:panelGroup>
</h:body>
</html>